package com.app.bimo.library_db;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

import androidx.annotation.NonNull;

/**
 * 阅读日记录
 */
@Entity
public class ReadDayRecord {
    @Id(autoincrement = true)
    private Long id;
    //用户id
    private String uuid;
    private long creatTime;
    private long endTime;
    /**
     * 状态  0 未上报  1已上报   2 成功上报
     */
    private int status;

    @Generated(hash = 752937647)
    public ReadDayRecord(Long id, String uuid, long creatTime, long endTime,
            int status) {
        this.id = id;
        this.uuid = uuid;
        this.creatTime = creatTime;
        this.endTime = endTime;
        this.status = status;
    }

    @Generated(hash = 559656788)
    public ReadDayRecord() {
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getUuid() {
        return uuid;
    }

    public void setUuid(String uuid) {
        this.uuid = uuid;
    }

    public long getCreatTime() {
        return creatTime;
    }

    public void setCreatTime(long creatTime) {
        this.creatTime = creatTime;
    }

    public long getEndTime() {
        return endTime;
    }

    public void setEndTime(long endTime) {
        this.endTime = endTime;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @NonNull
    @Override
    public String toString() {
        return "ReadDayRecord--uid=" + uuid + "--id=" + id  + "--creatTime=" + creatTime + "--endTime=" + endTime + "--status=" + status ;
    }
}
